<script>
$(function() {
	$('#loginmodal').modal({
		show: false
	});
	$("#submitbtn").click(function(){
		$("#loginform").submit();
	});
});
</script>
<div class="modal fade" id="loginmodal">
	<div class="modal-header">
		<button class="close" data-dismiss="modal">&times;</button>
		<h3>登录Lei Cloud</h3>
	</div>
	<div class="modal-body">
		<form action="/hcs/login/submit" method="post" class="well form-horizontal" id="loginform">
			<fieldset>
				<legend>登录</legend>
				<div class="control-group">
					<label class="control-label" for="uname">用户名：</label>
					<div class="controls">
						<input type="text" class="input-large" id="uname" name="uname" placeholder="用户名/Email/用户ID">
						<span class="help-inline errormsg"></span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label" for="pwd">密码：</label>
					<div class="controls">
						<input type="password" class="input-large" id="pwd" name="pwd">
						<span class="help-inline errormsg"></span>
					</div>
				</div>
				<div class="form-actions">
					<button type="submit" class="btn btn-primary">登录</button>
				</div>
			</fieldset>
		</form>
	</div>
	<div class="modal-footer">
		<a href="#" class="btn" data-dismiss="modal">关闭</a>
	</div>
</div>